package com.pzhu.acargid.model;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pzhu.acargid.domain.Model;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author Lenovo
 * @description 针对表【model】的数据库操作Mapper
 * @createDate 2023-08-14 14:00:08
 * @Entity com/pzhu/acargid.domain.Model
 */
@Mapper
public interface ModelMapper extends BaseMapper<Model> {

    @Select("select count(*) from doc where user_id=#{userid} and mod_db_table=#{model} and removed=0")
    Integer getfiles(@Param("userid") Integer userid, @Param("model") String model);
}




